package com.wx.servlet.controller;

import com.wx.servlet.annotation.AngleLogger;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ServletController {

    /**
     * http://localhost:8081/hello?name=wang
     */
    @RequestMapping("/hello")
    @AngleLogger
    public String hello(String name) {
        System.out.println("name:" + name);
        return "OK";
    }
}
